<template>
	<view></view>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
import routeUtil from '../../util/routeUtil.js';
export default {
	onLoad(e) {
		console.log(e)
		var that = this;
		that.logout();
		if (e.shareUserId) {
			this.saveShareUserId(e.shareUserId);
		}
		if (!e.returnUrl) {
			e.returnUrl = 'pages/index/index';
		}
		
		routeUtil.returnUrlHandler(e.returnUrl);
	},
	methods: {
		...mapMutations('user', ['logout', 'saveShareUserId'])
	}
};
</script>

<style></style>
